package cj.hrm.dao;



import cj.hrm.entity.Education;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import static cj.hrm.util.common.HrmConstants.EDUCATIONTABLE;


public interface EducationDao {
	//查询
		@Select("select * from "+EDUCATIONTABLE+" ")
		List<Education> selectAllEducation();
		
		@Select("select * from "+EDUCATIONTABLE+" where name like CONCAT('%',#{content},'%')")
		List<Education> selectLikeAllEducation(String content);
		
		@Select("select * from "+EDUCATIONTABLE+" where id = #{id}")
		Education selectById(Integer id);
}
